#include "page/page.h"

Page nextPage = HOME;

void Page_Navigate() {
    while (nextPage != FREE_ALL) {
        switch (nextPage) {
            case HOME:
                Home_Show();
                break;

            case GALLERY:
                Gallery_Show();
                break;
        }
    }
}

void Page_Free(Page page) {
    switch (page) {
        case HOME:
            Home_Free();
            break;

        case GALLERY:
            Gallery_Free();
            break;

        default:
            Home_Free();
            Gallery_Free();
            break;
    }
}
